import java.util.Scanner;
public class Test005 {
    public static void main(String[] args) {
        Scanner n = new Scanner(System.in);
        System.out.println("请您输入数字1~9");
        int foc = n.nextInt();
        for(int i=foc;i<=9;i++){
            for (int j=1;j<=i;j++){
                System.out.print(i+"*"+j+"="+i*j+" ");
            }
            System.out.println();
        }
    }
}
